﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace DARE
{
    public class CStaticTextData : CWidgetData
    {
        public string text;
        [ContentSerializerIgnore]
        public SpriteFont font;

        public override void FillDataStructure(CWidget wid)
        {
            CStaticText w = wid as CStaticText;
            base.FillDataStructure(wid);
            text = w.Text;
            font = w.Font;
        }

        public override void FillFromDataStructure(ref CWidget wid, CHUDSystem hud)
        {
            base.FillFromDataStructure(ref wid, hud);
            (wid as CStaticText).Text = text;
        }
    }
}
